﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmartEP.Presenter
{
    public class BasePresenter
    {
        #region Enums
        public enum PresenterType
        {
            PatientCareType = 1,
            MeasurementType,
            OrderInfoType,
            PatientInfoType,
            ClaimInfoType,
            FrameStylingType,
            VirtualTryOnType,
            VisionTestType,
            ContactLensType,
            ConfigurationType
        }
        #endregion

        #region Fields
        protected Panel contentPanel;
        #endregion

        #region Properties
        public PresenterType Type { get; set; }
        #endregion

        #region Constructors
        public BasePresenter() { }
        public BasePresenter(Panel content)
        {
            this.contentPanel = content;
        }
        #endregion

        #region Methods
        public virtual void DisplayView(UserControl view)
        {
            contentPanel.Controls.Clear();
            contentPanel.Controls.Add(view);
        }
        #endregion
    }
}
